Separate functions related to creds