Precompile layout