Issue #7. Added checking for position code uniqueness.