Removed println() commands used for testing