Hmm, I wonder if there's a better way to do this.