Function not working after update

And also please read this post on sharing code/flows in the forum. It takes just a second to format your code on the forum and it makes it a lot easier for use to read.