Added 3 new external functions for diameter estimation.