Apologies for resurrecting a week old thread on my first post here but thought I'd mention another solution which worked for me - seems my skills at deciphering ScottishBen's solution were sub-par.
...