A Washington federal district court judge on Thursday upheld key provisions of the District of Columbia’s second shot at gun regulation following the U.S. Supreme Court’s invalidation of its law in 2008.

In a 62-page opinion, U.S. District Judge James Boasberg rejected a challenge to the District’s basic registration requirement as applied to long guns as well as four registration requirements that applied to all guns.