Fixed bug with delayed input.  I dont remember what else I did