Some helper stuff.