ID generation and comparison for moped.