What a bastard am I! Used unsigned int instead of size_t for position..