Added getBlocks to listener.