Optimized Build Script