Make this more performant.