Removed final newline from debug print statemen.