Is there a solution where I generate an automatic code?