Added a start of the refresh function.