Remove unused function.
Remove use of tty, and hide password from stdout.