Partly done with sell functionality