Reworking and optimizing work function.