Updated  build script