Update code metrics - functions