Added new code to print out statements