Connection handler almost finished