@Neil Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the
faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.