Actually, I got a good result by using the perlis.dll instead.

Thanks for all the advice though.