Add equal function.