Implemented persistent connection demo