Restructuring bash files.