Removed unneeded variable and debug console output