Here is something I did a while ago for a customer.