Hi Oleg. I found some time to get back to that patch and to address all of the problems you pointed. What do you think about the attached patch? I didn't expect it would became that big.