Adding time constraints into the scripts.