Added spring factory