Fixed function parameter extraction for no params

Also allowed the ToggleReadOnly command to only update state instead of
change it.