Updated (ba|z)sh function