Debugging code (extra println's) removed