Explicit types on calls to delta, correct types for UIDs, const for checking, ensure last IDs always initialised.