Switched from testing equality of coordinates to using epsilon.