Added a few printfs so we can see what is happening.