Compare Function modified for multiple users