The following are scripts to solve some cases, may help you toward a solution, feel free to submit yours through support or comments!