Updated print statements to print functions