An assessment of brain function predicts functional gains in a clinical stroke trial