Better progress saving with cookies.