Only refresh at the end