New exploratory analysis code