Using type callable instead of Closure