Avoid using lambda when not needed