Thanks for the comment. It's been a while since I coded in C and that's how I used to do it before. I agree that this looks better. I'll update it.