Fully working, just need to tweak stockdetail