Updated some debug messages to error messages instead.