Fix & make into sane bash