Removed redundant functions, now just a script