Replacing and refreshing data