This is pretty cool. Be nice to have some tests for this.