I have been doing cardio and weight-bearing exercises for years. I definitely see the correlation between any exercise and brain function / alertness. Sometimes when you are tired your brain makes excusess to exercise, but the exercise can make you less tired than caffeine.