Updated to reflect change from perl to bash