Restructure bash stuff.