Fixed bug with nano sleep nanosecond argument.
Cleaned up unused variable due to warning.