Remove debug code from release mode.