Adding time limit to gapfill and gapgen scripts