Why didn't I think of this sooner?