Add sourcecodegen for investigation