Extract and store Activities and Transitions