Split files, add globals.
Remove underscore dependency.