Add some puts to try to figure out what's gone wrong