Simplified? the bash script