Pasted new version form gist