Implemented flipping interface.