Partial implementation of sync