Forked repository from https://bitbucket.org/vmiroshnikov/fudge