Doesn't work yet, but maybe this is the way to go.