Hooks for startup and generating uniqueId