Added multiple input support to once2guard and guard2once.