Correct method.
Generate name automatically if not specified.