I LOOKED EVERYWHERE FOR THIS MAGIC METHOD. aaaaaaaaaaaaargh. I knew there was some clever way to do it.