Formatting.
Add circle detection.