Add register callback