Finished with the flip function.