Moved out the Credentials class.