@Encode can now be used with groups