Added debugging statements to the send_command function.