Fixed some bugs, now bash is used to pass multiple inputs