I think I finally got this right.