Do you have the tool open sourced somewhere? I have been thinking of using something similar