Fixed free block allocation, added mechanism to detect identical states