Working again, now static typing has effects also on callbacks.