Modified input for start and end