Collapse footprints into one function.