How did you handled error optimize mechanism in your project?