https://code.google.com/p/polutils/