Version 2: Combining 2 Data Extraction functions into 1, and 2 Gamma Cascade functions into 1