Re-wrote inline compiling using codecopy instead.