Added an average option