Static groups

As well as fixing the problem with the crashes.