The AUTOMATIONHANDLE structure serves as a working area for the automation functions. The user can initialize the automation handle at the start of program and save it in a variable. The automation handle can then be used with any LEAD automation function. When the automation handle is no longer needed, the user can free it. Therefore, the user doesn't have to initialize the automation handle and free it every time it is used.