Utility functions used by various research projects