Code optimize.