Adding comments to help with understanding