[WIP] Make set_block and set_block_idx async