Use a trailing closure syntax to make the closure prettier.