Removed function used only for debugging purposes.