Define grouptype as an enum for debugging purposes