Inspired by by_address by Matt Brubeck (@mbrubeck).
