How do I use a UDF? Should I incorporate it at the start of my script?