Changed Closure to Closure<?> to fix warning