Added onecontrol_sync and fixed a lot of other stuff.