Adding spring utility function