@KKhatlisi,
I recently worked on a nearly identical problem with another member. Please check out the thread below – I think it will get you what you need: