Add static keyword for local functions