Added function to filter existing blocks from a list