Also, getting better sleep (by fixing heartburn and meals) will mean you're more rested, and improve functioning during the day.