Using value() helper to handle closure