Crude working version of the script
Removes dependencies. Too large.