Added basic printToConsole() function