This has not been implemented yet, although a good solution probably exists. PRs welcome!