Generate flat_interface