[Issue #1] Replaced println statements with debug