New scripts to analyze data, not yet working