Rewritten code that uses presentation compiler.