I would need to use a used defined function for that.

This will take a while.