To bad there isn't a cleaner way to do this.