Add generation support for B+tree code