That would be very useful but is not a trivial problem.