Added promises and dumping of labels