Gratitude influences sleep through the mechanism of pre-sleep cognitions.