Adding a public method to build custom comparison rules