Adding compare to PathTemplate