Note to self, get better at bash scripting