Add version check and change lambda directive to -> to make the code more visually appealing.