Buchholz: Contract helped deal with injury