Added sleep
Fixed incredibly stupid error. closes #651