Generate ids automatically if ommited