Various utilities for processing the data.