Add a couple of utility functions for use in config scripts.