Removed speed debug code