Prepared the feature extraction