Support 1.7 https://gist.github.com/barneygale/1209061