Added a parameter for number of features kept.
Default is 6000.