Removed some unnecessary debug code