Cleaned up DebugOverlay code