Updated to use persistent connections.