Added an initial set of environment functions
WIP