Added Global Initialize and Finalize functions