I'm amazed my crappy shell script still functions.