The present invention relates to compounds according to Formula I:or a pharmaceutically acceptable salt thereof wherein the variables are as defined in the claims. The compounds can be used as inhibitors of RORγ and are useful for the treatment of RORγ mediated diseases.