Add missing 'const'-ness.
Fix parameter/variable name mismatch.