DRY up a little & add putses for debugging
Merge pull request #1 from adamworrall/patch-1

DRY up a little & add putses for debugging