It's in the genes: Research pinpoints how plants know when to flower