Jaw-drop elegant code.