No matter how I rearrange the MATH statement, when vInjCounter = 0 I get an array out of bounds error. Why is this giving the array out of bounds when the IF is attempting to prevent this? I've rearranged the IF arguments every way and it still gives the error.