Reorganized calculation now storing average division value & min. distance