Adding some more print statements to make it easier to see the steps.