How to set time restrictions.