Added value check to set command.