#17 Add lock control for specific environment.