Hi Volker, The overall system is 10k lines, many, many modules !! Thanks for your other comments... Regards, Mark >function (10k lines for a function does sound badly structured though) >into a separate module, you can use different switches.