Numerous additions; utils for data analysis