Little buggy autosync functionality
Finished the autosync functionality