Improve file handling.
Support saving passwords.