Removed some debug code that is no longer required