Had to extend the projection calculation to work properly for subsets.