Made tiny change because I was a bit overprotecive. Now code runs v. slightly faster with the same result