Add sort, flatten, hash support.