Somewhat superfluous to define a lambda here if it's used in just one place?