I'm not seeing the purpose of `skip` here. It seems that it is initialized to `0` and set to `1` here but seems to be unused otherwise. Consider explaining the purpose of `skip` or removing.