Add cobj. Some bugs still needs to be fixed.