added input error leniency and input time leniency