Moved level env to level state