Adding the time limit