Forgot to make a function const
Add small comment
Scripts must pass a value for the lock command to be valid.
Get closer to vanilla lock behavior, while still remembering lock state.