Add missing functionality from old repo

@stevengj I deleted the old repo to avoid confusion for users, this is all the old functionality ported to this repo
Can you change this back to `<=`?  I realized afterwards that using ≤ gratuitously breaks 0.2 compatibility.