Copied over the extensions needed to support GFM