Setting code type.