Added some puts to see where it was failing