Replace proc with a lambda cause we are returning inside the block.