Changed bash script to old flow of program method