I added some better comments here.