The agreement contains a three stage process to free hostages and negotiate a more permanent end to the war.