Implemented code emitter and code writer.