Implemented very simple code generation.