Print intermediate results to the console