First draft of the functionnaity. Works, but need to think about plugging it with the version control system and tightening the match specificity.