Renaming K to avoid overwriting key parameter

Sounds like a good idea