Code tightening