Adding err checking, strictly /bin/bash