Add shellscript for optimization.