Implemented locking, in-error VG detection and auto disable/enable
Fixed minor bug