Moved environment to its own file