For each fragment match, the geometry of the match is retrieved from the database, and translated to connect to the neighboring atom in the working molecule. The bond vector between the existing atom and the new fragment is determined based on the perceived hybridization of the atom (e.g., sp, sp 2 , sp 3 ), the covalent radii of the two elements, and the bond order (i.e., single, double, triple, aromatic).