Every goal every action every thought every feeling one experiences whether it be consciously or unconsciously known is an attempt to increase one's level of peace of mind.
I think there's a supreme power behind the whole thing an intelligence. Look at all of the instincts of nature both animals and plants the very ingenious ways they survive. If you cut yourself you don't have to think about it.