UNFINISHED: added changes to the late tool to make it work with hdleads and ctleads. It is an unfinished first attempt