A gastrointestinal device and methods of manufacturing said gastrointestinal device are described and include a flexible tubular structure including an inner surface and an outer surface, a plurality of at least one type of commensal microbe associated with at least a portion of at least one of the inner surface and the outer surface, and a proximal end and a distal end, the proximal end and the distal end forming a flow conduit through the flexible tubular structure and at least one anchor structure including one or more gastric wall-engaging components configured to engage a wall of the gastrointestinal tract of the subject.