Changed some error messages to be more descriptive.