Added group inheritance. Updates #1063