Fork from the source code at http://sydney.edu.au/engineering/it/~rcdmnl/PFSA/