Added try_first_pass and use_first_pass parameters