The code worked and the time doesn't matter since I have other slow functions as well. I am not dealing with that many records either.