Removed useless formatDebug() function that was only used once