First working version

Only support non-persistent connection