You can tell I've never used functions in bash...