Fixed problem with print statements