Added feature engineering function.