Tricky to figure out how to test this.