Added dt to the setY function