Gratitude Shapes Response to Trials