Taking out the message printing to console