Register user and callback functions