Adding time restrictions