Should be easy to implement, you can steal my code if you ask nicely just add a credit to my name in the code comments.