An interested question, as not-expert, about the callback:
This callback calls now a global function, could it not be moved into this class?