Add debugging for sync store handling