Added reference to the original gist to give credit to the person that deserves it