Miscellaneous convenience functions and dataset