Added ability to fetch the block count.