Handle all optional callbacks