Moved external scripts to lib/