The elderly receiving CALED as an intervention (15 people with frailty, 9 people with dementia) will be randomized to two groups (Group 1 and Group 2) based on equal distributions of elderly with dementia and frailty in each group and similar numbers of men and women in each group. Since the residents spend a lot of time in the same common areas where CALED is installed, the two groups are subjected to the intervention at the same time, and Group 2 therefore has a delayed start. Group 1 starts with an 8 week control period followed immediately by an 8 week intervention period. Group 2 starts with an 8 week intervention period, at the same time as Group 1, followed by and 8 week control period. Group 3 has a 16 week control period starting 4 weeks after the beginning of the control period for Group 1, and ending 4 weeks before the end of the control period for Group 2.