Added session keepalive implementation