Add ability to lock/unlock the current mode