Added comments to if statements