Fixed compiling to operators, added index