Weaving together belief and behavior