Made dc not global anymore.