Tidied using a let.