Added get_block and path_token functions.