Made some changes for send_command.