@Pat Hartman thank you for the info, i did try that earlier and got the following error:
but i have just realised the mistake i have been doing, the call to the module routine did not include "Call" in front of it. When i add that it works, although it does act weird with lots of rendering...