Removed some legacy debugging code