Retiring hackernews so I'm putting the code in here.