Removing broken debug code