Support 'local' as a function