Added success and error messages.