Implementation of rules for sync