Better way to do the same thing.