Added optimization code