Added code for passport parsing.