Added compare method