Moved the activity network code into the parent