We did something similar, check this out. At the very least you could modify the code and contribute?
Cheers, Valentine