Add stocks for leaning
Merge leaning functions