added Android version of timelimit