Flip effect and minor fixes