Changed listtype to Linked list in getBlocks.