Stealing things from @sjl.