Fixed some easy bugs

There was a problem with a missing parseFloat and there was a typo in
the delay amount loop that kept it from working.