Added average as direct output