Fix new bugs.
Add new Credentials class.