Added a callback for (re-)initialization

Signed-off-by: Joern Bernhardt <jb@campudus.com>