Xanthan gum acts as a gluten substitute of sorts. It binds the cookies together and prevents a crumbly cookie! If you're using a gluten-free all-purpose flour blend, many of them already contain xanthan gum. Check the ingredients to be sure.