Use init_with when initialize callbacks registered