Lots of minor changes.
Blend mode and globals cleanup.