One thing that affected me was drinking coffee through the day, and then stopping in mid-afternoon, I found that from around 8PM to midnight that left me in sort of a zombie state. I eliminated caffeine for a few months and now I consume a smaller amount.