Reviewed-on: #24
I didn't do extensive testing, but judging from the code and a quick local test it looks fine.
Maybe this won't be useful anymore in the future, but for now I think the information provided is atleast helpful for debugging/development.