Autogen

Thanks to @jacknagel for the suggestion here. Hopefully this does the job.