fork from 'https://gist.github.com/Superbil/7689556'