Adding isPointInPath test
removing tryGet (use flush)