Added all_garbage function, fixed other uses of block_id vs block_index.