The idea was brought up in #28. Not entirely sure what the best API would be for this though. Feedback welcome.