Added to pof internals code to go along with blog post