Added a spring factory.