Move name generation to run constructor so that it does not interfere
with database registration.