Fix broken CDC implementation and add HASH funtion to obsfucation.