How to Set Priority to Automatically Turn On and Off