ENH: Copied from loadable module template.