Updating the adapter.