Yeah, that worked beautifully thanks, I can't believe I didn't think of that haha.
But I was still wondering on a purely conceptual level, where the 5 ms delay came from. As you can see from this handy sidebar, I am a newbie, so I am trying to get my head wrapped around all the little Arduino intricacies.