Updated to be able to be able to use external trigger modes.