Changed lampda to proc