script max lock time