Finished implementation of DCP