changed sleep 1 to wait in genffcom (ffcom) since that's what wait is for