Code for making features from data.