Added in basic logic to handle syncs in only one direction (push or pull).