*Pretty* sure this isn't the best way to do this.