Added some better commenting.