[codiag] Synchronization of adding and removing bubbles implemented. (#15)