Added bot protocol and widened try block