Code now compiles and generates logic.