Add lazy activity setup
Add support for 'subactivities' key