Modified output to only print error messages