Removing debug printf's
Fixing unused variable