Prepared for implementing averagingIn
Implemented averagingIn