Adds warning and error messages for user.