Couldn't find a better way to do this.