Added a comment and a better wait when setting time. Also added some nice constants.