Added some comments to make it more obvious what this file does.