Added built-in functions array, flatten