Added support for particle groups.