Graphic optimalization added to DM.