Thanks, I'll remember that. But the root cause of the problem was forgetting that you can't fit "10000" into a byte. Oops...