WIP: Make ID generation portable.