Fixed undefined credential variable.
Merge branch 'develop'
Merge remote-tracking branch 'upstream/master'
Merge pull request #5 from kewlburn/master

Fix for undefined $credentials variable.