Replaced 'lambda' with 'block'