Added a check for maxFeatures in the get