Finalized the code for exporting a table of detected blocks