Working on polygon input detection.