Added folding for methods