Newsync

New sync algorithm passes the same amount of tests as the master.