Added ability to control number of feature to eliminate each iteration