Better code reuse; typo fix.