Since it was recently rewritten, the code was copied over nearly as-is from the legacy branch without any other major changes considered.