Reorg code that fetches blocks from HDFS