Working version of get_features.R