Fixed the connection bug without using weird monad stuff! yay!