Exactly Alan,
Work out the tax percentages, weigh it up against interest payable on a mortgage, choose the best option.
Not plugging here, but check out my website below my signature,,,,,,,,,,,well yes, I was plugging, but Justin knows about me, probobly too much!