Added support for autosync, and fixed the sync options bug