Prints the result to the console