Block memory moved to local variable instead of global. This opens possibility for nested blocks and forced a little bit of code refactoring