Add missing utility functions.