Added refresh functionality.