I wonder if there's a shorter way to do this.