Added debugging statements in the 'Flipper' function.