Layout engine, final steps