Added pattern matching to expressGroup, for much more readability.