Added a function

Don’t think it works.