Fix from John Reilly @ HP for my typo with the parameters being reversed. Ooops.