Removed puts for debugging.