Everything you need to know about the Afghan deal