Persistent connection working now. TODO: fix concurrent connection