Changing keepalive to use send function.