Set a setting when registered, and use it on the settings app
Added missing 'this'
Removed extra boolean conversion
Lock screen command.