Why are stop signs are octagon-shaped?

Stop signs are a unique sign on the US roadways. The stop sign is the only sign on the road that is in the shape of an octagon. I could be wrong but I think the stop sign is shaped as a octagon to help aid in identification from a distance.