Replace refresh with sync