Added a minimum on time of 30 seconds and updated code to support it