Fully working sync command