Using custom groups and types