Quick hack to make gists work again. Probably needs a rewrite