You can make a roux by adding flour to vegetables to make it thicker. If you want to wait until the end to make it thicker, use a slurry of equal parts of cornstarch and water (If you only have flour, use a 2:1 ratio). Bring it to a rolling boil to check if it has thickened enough.