Deleted one commet that made that a method was deprectad. Now it works.