First attempt at code generation.