Data reduction section from Sriram