Added initialization and check for it.
Added Flip method.