Added heart beat to libclient.