Ideally there'd be an enum or defines for these magic flags.