added variable time allowed