Removed old function.
Cache activities.