Added automatic environment import functionality