Better handling of password entry.
Actually pass arguments to main.