Moving script into library
Preparation for another repo break