Add callbacks to estimate size from server