Updated sim comparison code to reject masked features