Changed "not" to "!" for MSVC compatibility.