Skeleton code.
Simple functionality for allocating id:s.
Complete functionality for allocating an id.