I have recently altered a piece of my code after being advised a "better" way of writing it. The next code block basically grabs the required info and creates it in a