Added autosync option. Still needing fixed but in general it works :)