Cleanup.
Performance tweaks. Switch tabs to spaces.