Changed the way messages are print. Now writing to a file in case there
is a need to prevent printing if file isn't found.