bFound implies that this is a boolean, but it's actually an integer.  iFound.

Where does 5000 come from?