Test now connects to a real-world server
Tweaked MODE handling
Added some error checking