Now implemented and tested.