A bunch of structs and masks