Moved printing of message to an appropriate place