Cleaning up the error output of MainActivity.java