Working version for passing to RunmyCode