Optimization of the items code.