Improved XKCD script