Moved ProcessForever and Connect- functions to Connection class.