The process and ingredients of making fruit pie fillings such as this easy homemade blueberry filling is somewhat similar to making jams. The only difference is the use of cornstarch in the filling and pectin in the jam. Pectin acts as the gelling agents while cornstarch acts as a thickening agent. Fruit fillings thickened with cornstarch hold up better when used in pies and cakes as compared to jams.