Add functions to insert and delete flips.