@marukawa.tomoki ,
check out this, maybe you can adaped something here… … i think you can find a lot to this topic