A management standard for digital subscriber line (DSL) systems has been defined in order to ensure the spectral compatibility of the signals, services, and technologies that are deployed. Compatibility is typically accomplished by using static spectral masks. This conservative approach may lead to suboptimal performance of DSL systems. Recently, a number of dynamic spectrum management (DSM) solutions were proposed that improve DSL performance by adaptive application of spectral masks, also known as DSM level 2. The masks are calculated taking into account actual performance requirements and impairments, such as crosstalk. We present improved DSM level 2 algorithms that are faster than existing algorithms and demonstrate potential rate/reach gains by numerical simulations for some DSL technologies, such as asymmetric digital subscriber line transceivers. We also present a solution for flexible deployment of DSM spectrum optimization algorithms in the field.