Miscellaneous functions and wrappers for development in other packages
