Added path equality check