Remove unnecessary echo.
Write error messages to stderr.
Fix indentation.