A few optimization.