It wasn't pretty but when it came down to crunch time, senior quarterback Brandon Cox got it done for Auburn Saturday night against Kansas State.