Edit: I realise this should really be posted on the Github page but I don't have an account and can't be bothered to register a new one.
https://gist.github.com/than2/26bf8c79052acc2804bd
here, i fixed it and disabled the logging and added a counter