Added the getSubset method.