Added the conditions for local and unsafe variables to the compiler, all tests passing.