Smarter Compiler.

Previewing should work much faster now, e.g. when videos are used.