Building the activity timeline