Added support for total blocks