Added flipPoints