added ability to parameterize based on number of features and frames