Added comments to the code I just wrote.