Reworked internal viewer engine.