Like that? https://gist.github.com/a51ec9a0c64316522d04