Updating to work for activity plots.