https://github.com/ntamas/plfit
