Added basic syncing functionality