Helper function support.