Added get_block_containing_offset API