Understanding the later stages of dementia