Work on closeness function (in tbl.php)