Pakistan had a very neutral position during the War in Afghanistan. On one hand Pakistan was helping the Taliban Insurgency by acting as a safe haven for them as well as being their logistical supply line. However on the other hand Pakistan served NATO as their major logistical supply line. So basically Pakistan was helping out both U.S. and the Taliban so when one side wins the war, Pakistan will be on good accords with either one.