Fixed client thread
Created an enum for KVCommands