Adjusted to not rely on CompilerOptions constant that isn't in < 1.8 compiler