Added dynamic logging. Oops, derp