Adding more comments to make it more readable.