I think I've got an idea for how to implement this.