About the same time as the Jampel Lhakhang (Manjushri Temple) was added to the complex, a walled courtyard was added to the Main Temple. That it was meant to expand the sacred area can be recognised from its painting program, that largely is preserved in the form of recent retracing.