Added new method to print messages.
commented other message func