Whoops. A > should have been a >> in the TOR script.