Functional BADH2 converts γ-aminobutyraldehyde (GABald) to γ-aminobutyric acid (GABA). When BADH2 is partly or fully non-functional, GABald is diverted to the production of Δ1pyrroline and 2AP (responsible for fragrance).