Direct ionization code added