Changed delay for inputs (time step from 3 to 8).