Fixed a few bad bugs. Also, should attempt to automatically reconnect now