Added code for building meanFeatures and activities tables.