Initial try at autogenerating stuff.