Phew... done! The logic was extremely brain-bending for sure... hopefully less so now :)