Added types exporting and corrected result_tuple type