This HAcid is ported from bitbucket. (https://bitbucket.org/staltz/hacid/wiki/Home)