Added the environment constructor, various definitions including
dependencies and actions.