Add pretty printing to resources.
Handle case when no creds are supplied.