added environmentalLockValue.
integrated environmental lock check into environmentalLock function.
updated version number.