Working on cleaning up bash errors