Working on credential support. Also added support for binary output, need to test this.