Add endRefreshing code.