Making the closure a static method to avoid error on 5.3