Clean up lambda calculation variables