Fix typo.
Better way to know whether it's a new activity.
Use tables.