Changed numsteps to 5