Moved dit_code to proper place