A federal judge in a revised order on Thursday blocked the Trump administration from above-ground construction work on the controversial proposed White House ballroom.

But Judge Richard Leon’s order allows the administration to continue below-ground construction, including work related to national security facilities.

Leon is also allowing above-ground construction “that is strictly necessary to cover, secure, and protect such national security facilities,” as long as that construction does not “lock in the above-ground size and scale of the ballroom,” according to his injunction in U.S. District Court in Washington, D.C.

The order comes five days after the federal Circuit Court of Appeals in D.C. told Leon to clarify his prior order issued on March 31, which enjoined the Trump administration from taking any action to build the planned $400 million, 90,000 square-foot ballroom where the White House’s East Wing once stood. The East Wing was demolished last year to make way for the project at the behest of President Donald Trump.

The appeals court specifically told Leon to reconsider the potential national security implications of blocking the construction. The administration had told the appeals court that Leon’s injunction was “threatening grave national-security harms to the White House, the President and his family, and the President’s staff.”