Updated to reuse cookies