Added most of the environment functions to the backend interface.