Fixed Bug

- Fixed a bug where the script was not working as a Lib