Incorporating Jed's suggestions for avoiding compiler warnings about unused variables in RELEASE builds