Implemented add/remove realtime logic.