It looks tricky, I'm surprised there is no other way to do this.