Refactor compile and run to build.Compile and build.Run