I have got it working.
Thank you all for your helpful advice.
(Sorry I cross-posted, I'm new to the community)