Christopher G Green's Miscellaneous Functions