semantic: Use local and global instead of static on functions.