Rename $core_item to $item