The main aim of this study is to investigate whether increasing the amount of physical activity in frail older people during hospital based rehabilitation is associated with better mobility outcomes compared to usual care. A second aim is to investigate whether this physical activity intervention is associated with improvements in health related quality of life. Finally we plan to investigate whether increasing the amount of physical activity during rehabilitation is cost effective, measured from a health system perspective, compared with usual care.