Clone from kolotyluk/elevate