Converted to use a feature instead of declare_chain