Added help and authentication. Good logic on when to stop.