I'll replace it with 'assert(prevData == NULL);' and later refactor code.