Added settings service and an option to invert commands