Added code-generation. Haven't tested.