Separate code from xkcd