How does palliative care work?