Added get_total and doc.