Removed unnecessary method for outputting errors