Add norm_dir (geoquality) code