Add static to function scripts