Changed mole type to enum