Fix code to get detailed activity data