Almost working sync