Remove debug code from release build