Added reference
Removed final debug print statement