Fixed warning and added sleep time

- Fixed warning for non-initialized variable.
- Changed sleep time for message to 1.0 from 0.5