A little better way to do this.