Better bash handling