Added support for messages (success, errors etc).