Utilities for handling data structures.