Added make_bubbles and update_bubbles functions.