Improved feature computation by adding the padding with truncation feature directly into the feature generation code.