Utility functions in GAP
