Changed function call from KeyValue to SetKeyValue