CUGL  2.0
Miscellaneous functions