added script for applying time limit