Looks fine. I think I can lift position++ out of  the switch. I'll do that myself afterwards as I will also press the button to standardize the code style in the test.