Add ability to set the key at runtime.