Added KeepAlive parameter