Fixed some bugs, but still no connection can be made.