Added comments to indicate transitions