Add two exportable utility functions: