Finish initial implementation of sync and set.