Switched codetype to code_type.