Added inline comments to method