Removed some unneeded debug code