Ported level loading logic from stock templates.