Added gist. Not sure if it will work