Move messages from method to class