Corrected type and flags.