Added all kinds of reference stuff.