I'm amazed at how elegant this code can be!