xMin, xMax, yMin, yMax are working