Figure out a better way for this.