Added option to add hydrogens