Inspired by this comment from Bronin.