Something very similar was discussed recently, should get you started.