Optimization of the system