It bothers me that there's no better way to do this.