Extracting the reusable libraries out from the script.