Fixed race condition. Added redo target command line option.