Added time and max keyboard input wait time