Make it compile again by using an instance method instead of a static method