Added global functions script.