AI? Is so the function's title kind of ruined it... BTW, line #371's operator should probably be -= instead of +=. Benny