This should be a separate function to generate a name, which can be used by other scripts