Callback function can be registred