Fixed print statements to get better console output.