Added method applicable to MSVC compilation.