Replaced closure with block expression