Avg scale

Moved avgScale to core