Add struct API