Removed newline characters and changed error codes to two characters.