Yup, that was my TODO. I thought it could benefit from some commenting since it wasn't really clear to me how this works.