Wrap aggregate in a pattern