This should be a method somewhere.