Changed lambda to block