Use a template in aggResult (more esay to maintain)