Initial implementation of Pernet-Stein.