Removes some debug code