Added settings switch to allow seperate locking of device on turning the
flash light off and on.