Restore readDatagroups function accidently deleted in 1e7492a8068610c26dd7390ea3592a35724bbc6f