Refactoring desired callback signature