Fork of http://code.halssoftware.com/p/ (PATCHED)