Prevent duplicate transactions and check if name is known, close #215.