Changed error messaging.