Added pruned code