Fixed bug where features were regenerated with each call.