Take a look at the gist for more discussion: https://gist.github.com/rogeriochaves/3bb334c57ea5a095c9cf5cc6c53bc499