Removed faulty debug code